from flask import Flask,render_template
from mongo import myclient
from bson import ObjectId
app = Flask(__name__)
@app.route('/')
def index():
    data=myclient['test']['movie'].find()
    return render_template('test.html',data=data)
if __name__ == '__main__':
    app.run(host="0.0.0.0",port=5000,debug=True)